import { ElMessage } from 'element-plus';
import { EpPropMergeType } from 'element-plus/es/utils/vue/props/types';

// 用来显示提示信息
const message_notice = (
    content: string,        // 提示信息内容
    type: EpPropMergeType<  // 提示信息类型
        StringConstructor,
        "success" | "warning" | "info" | "error",
        unknown>
) => {
    ElMessage({
        message: content,
        type: type,
        showClose: true
    })
}

export default message_notice